package com.woniuxy.school.dietary.store.controller;


import com.woniuxy.commons.core.model.Result;
import com.woniuxy.school.dietary.store.model.from.FindDietTimeFrom;
import com.woniuxy.school.dietary.store.service.DietTimeConfigService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.time.LocalTime;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 吴彦祖
 * @since 2025年05月14日
 */
@RestController
@RequestMapping("/dietTimeConfig")
@Api(tags = "商家营业时间判断")
public class DietTimeConfigController {
    @Resource
    private DietTimeConfigService dietTimeConfigService;
    /**
     * 商家营业时间判断
     */
     @PostMapping("/findDietTime")
     @ApiOperation(value = "商家营业时间判断")
    public Result<Boolean> findDietTime(@RequestBody FindDietTimeFrom from){
         Boolean bool=dietTimeConfigService.findDietTime(from);
         return Result.getResult(Boolean.class).setMessage("查询成功").setCode(200).setData(bool);
     }



}

